package com.minimalist.common.entity.basic.vo.dict;

import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @author 11987
 */
@Schema(name = "字典列表实体")
public class DictListVO implements Serializable{

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(name = "dictType", description = "字典类型", type = "string")
    private String dictType;

    @Schema(name = "dictList", description = "字典列表", type = "array")
    private List<DictVO> dictList;

    public String getDictType() {
        return dictType;
    }

    public void setDictType(String dictType) {
        this.dictType = dictType;
    }

    public List<DictVO> getDictList() {
        return dictList;
    }

    public void setDictList(List<DictVO> dictList) {
        this.dictList = dictList;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        DictListVO that = (DictListVO) o;
        return java.util.Objects.equals(dictType, that.dictType) &&
               java.util.Objects.equals(dictList, that.dictList);
    }

    @Override
    public int hashCode() {
        return java.util.Objects.hash(dictType, dictList);
    }

    @Override
    public String toString() {
        return "DictListVO{" +
               "dictType='" + dictType + '\'' +
               ", dictList=" + dictList +
               '}';
    }

}
